// 此文件，仅供演示，写逻辑请在当前文件夹下另外创建文件
const fz1="fz1";
const fz2="fz2";
export default {
    // 开启命名空间
    namespaced: true,
    state: {
       fontSize:localStorage.getItem(fz1) || '14px',
       fontSize2:localStorage.getItem(fz2) || '20px',
    },
    getters: {
    },
    mutations: {
       handler(state,fontSize){
           state.fontSize1=fontSize;
           localStorage.setItem(fz1,fontSize);
       },
       handler1(state,fontSize2){
        state.fontSize2=fontSize2;
        localStorage.setItem(fz1,fontSize2);
       }
    },
    actions: {
    }
  }